﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Entity
{

    public class Product : BaseUserEnity //商品库
    {

        public string Img { get; set; }
        public string ProductImgMid { get; set; }
        public string ProductImgMini { get; set; }
        public string thumbnail { get; set; }
        public string Introduce { get; set; }
        public string Des { get; set; }
        public string Name { get; set; }
        public string Brand { get; set; }

        public string Type { get; set; }
        public string Spec { get; set; }

        public decimal Price { get; set; }//建议价格 
        public string CategoryId { get; set; }//类别
        public string codeBar { get; set; }//条码
        public string Keyword { get; set; }  //关键字
        public string SrcProductId { get; set; }  //源商品Id
        public string AdviceSlotType { get; set; }  //建议货道类型
        public int AdviceSlotLayer { get; set; }  //源商品Id
        public int? SellCount { get; set; }  //销量
        public string ProductId { get; set; }  //源商品Id 
        /// <summary>
        /// 
        /// </summary>
        public decimal? Def_Cost { get; set; } //设置商品默认成本
        /// <summary>
        /// 成分模板内容
        /// </summary>
        public string TemplateContent { get; set; }
        /// <summary>
        /// 成分内容值
        /// </summary>
        public string StructureContent { get; set; }
    }
    /// <summary>
    /// 构造模板
    /// </summary>
    public class Structure_Template
    {
        /// <summary>
        /// 用途区分构造项的ID  当名称有重复时，则根据该值判断使用模板
        /// </summary>
        public string Tid { get; set; }
        /// <summary>
        /// 用于对应分类的构造信息 获取模板时优先会以时分类名称匹配模板,如果存在则返回是对应分类的模板,否则返回其他的信息
        /// </summary>
        public string CateName { get; set; }
        /// <summary>
        /// 列名信息
        /// </summary>
        public List<Structure_Template_Column> Column { get; set; }
        public int Sort { get; set; }
    }

    public class Structure_Template_Column
    {
        /// <summary>
        /// 列名
        /// </summary>
        public string ColumnName { get; set; }
        /// <summary>
        /// 列名标识
        /// </summary> 
        public string ColumnID { get; set; }
    }
}
